home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
C
/
LIB
/
UNIXLIB37B
/
!UnixLib37
/
src
/
signal
/
c
/
signame
< prev
next >
Wrap
Text File
|
1996-11-09
|
4KB
|
155 lines
/****************************************************************************
*
* $Source: /unixb/home/unixlib/source/unixlib37/src/signal/c/RCS/signame,v $
* $Date: 1996/11/06 22:01:42 $
* $Revision: 1.2 $
* $State: Rel $
* $Author: unixlib $
*
* $Log: signame,v $
* Revision 1.2 1996/11/06 22:01:42 unixlib
* Yet more changes by NB, PB and SC.
*
* Revision 1.1 1996/10/30 22:04:51 unixlib
* Initial revision
*
***************************************************************************/
static const char rcs_id[] = "$Id: signame,v 1.2 1996/11/06 22:01:42 unixlib Rel $";
/* signame.c: Run-time initialise sys_siglist according to the
defined signals in <signal.h>.
Written by Nick Burrett, 29 September 1996. */
#include <signal.h>
#include <unixlib/sigstate.h>
int sys_nsig = NSIG;
char *sys_siglist[NSIG];
void
__unixlib_internal_signame_init (void)
{
/* Initialize signal names. */
#if defined (SIGHUP)
sys_siglist[SIGHUP] = "Hangup";
#endif
#if defined (SIGINT)
sys_siglist[SIGINT] = "Interrupt";
#endif
#if defined (SIGQUIT)
sys_siglist[SIGQUIT] = "Quit";
#endif
#if defined (SIGILL)
sys_siglist[SIGILL] = "Illegal Instruction";
#endif
#if defined (SIGTRAP)
sys_siglist[SIGTRAP] = "Trace/breakpoint trap";
#endif
#if defined (SIGABRT)
sys_siglist[SIGABRT] = "Aborted";
#endif
#if defined (SIGEMT)
sys_siglist[SIGEMT] = "EMT trap";
#endif
#if defined (SIGFPE)
sys_siglist[SIGFPE] = "Floating point exception";
#endif
#if defined (SIGKILL)
sys_siglist[SIGKILL] = "Killed";
#endif
#if defined (SIGBUS)
sys_siglist[SIGBUS] = "Bus error";
#endif
#if defined (SIGSEGV)
sys_siglist[SIGSEGV] = "Segmentation fault";
#endif
#if defined (SIGSYS)
sys_siglist[SIGSYS] = "Bad system call";
#endif
#if defined (SIGPIPE)
sys_siglist[SIGPIPE] = "Broken pipe";
#endif
#if defined (SIGALRM)
sys_siglist[SIGALRM] = "Alarm clock";
#endif
#if defined (SIGTERM)
sys_siglist[SIGTERM] = "Terminated";
#endif
#if defined (SIGUSR1)
sys_siglist[SIGUSR1] = "User defined signal 1";
#endif
#if defined (SIGUSR2)
sys_siglist[SIGUSR2] = "User defined signal 2";
#endif
#if defined (SIGCHLD)
sys_siglist[SIGCHLD] = "Child exited";
#endif
#if defined (SIGPWR)
sys_siglist[SIGPWR] = "Power failure";
#endif
#if defined (SIGTSTP)
sys_siglist[SIGTSTP] = "Stopped";
#endif
#if defined (SIGTTIN)
sys_siglist[SIGTTIN] = "Stopped (tty input)";
#endif
#if defined (SIGTTOU)
sys_siglist[SIGTTOU] = "Stopped (tty output)";
#endif
#if defined (SIGSTOP)
sys_siglist[SIGSTOP] = "Stopped (signal)";
#endif
#if defined (SIGXCPU)
sys_siglist[SIGXCPU] = "CPU time limit exceeded";
#endif
#if defined (SIGXFSZ)
sys_siglist[SIGXFSZ] = "File size limit exceeded";
#endif
#if defined (SIGVTALRM)
sys_siglist[SIGVTALRM] = "Virtual timer expired";
#endif
#if defined (SIGPROF)
sys_siglist[SIGPROF] = "Profiling timer expired";
#endif
#if defined (SIGWINCH)
sys_siglist[SIGWINCH] = "Window changed";
#endif
#if defined (SIGCONT)
sys_siglist[SIGCONT] = "Continued";
#endif
#if defined (SIGURG)
sys_siglist[SIGURG] = "Urgent I/O condition";
#endif
#if defined (SIGIO)
sys_siglist[SIGIO] = "I/O possible";
#endif
#if defined (SIGINFO)
sys_siglist[SIGINFO] = "Information requested";
#endif
#if defined (SIGWIND)
sys_siglist[SIGWIND] = "SIGWIND";
#endif
#if defined (SIGPHONE)
sys_siglist[SIGPHONE] = "SIGPHONE";
#endif
#if defined (SIGPOLL)
sys_siglist[SIGPOLL] = "I/O possible";
#endif
#if defined (SIGLOST)
sys_siglist[SIGLOST] = "Resource los";
#endif
#if defined (SIGDANGER)
sys_siglist[SIGDANGER] = "Danger signal";
#endif
/* UnixLib exclusives. */
#if defined (SIGERR)
sys_siglist[SIGERR] = "RISC OS Error";
#endif
#if defined (SIGSTAK)
sys_siglist[SIGSTAK] = "Stack overflow";
#endif
}